Allow csd for override-redirect windows
authorMatthias Clasen <mclasen@redhat.com>
Fri, 6 Jun 2014 21:59:38 +0000 (17:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 9 Jun 2014 18:01:42 +0000 (14:01 -0400)
commitbde4e863579f05368661347bfaf55e0480e4555c
treedc2834766661960cfef132db18fa7c20deeb3b59
parent60cd7076cf885cbc421babfba44c9081ded3ad78
Allow csd for override-redirect windows

This commit makes it possible to use client-side decorations for
override-redirect windows by calling _gtk_window_request_csd()
before realizing the window. Since the wm won't do interactive
resizing for us in this case anyway, don't bother creating
the border windows we use for this purpose on regular toplevels.

To make this accessible to themes, we set a "csd" style class
on client-side decorated windows. With this, .window-frame.csd.menu
can be used to define the shadow for csd menus, and .menu can be
used to define a border for menus under non-composited wms.

https://bugzilla.gnome.org/show_bug.cgi?id=731187
gtk/gtkwindow.c
gtk/gtkwindowprivate.h